
package cn.touna.jss.modules.third.zhima.entity;


import cn.touna.jss.modules.third.zhima.enums.ZhimaResultEnum;

/**
 * <p>
 * 芝麻返回结果DTO
 * </P>
 *
 * @author tianhuaxing 2016年1月26日 下午2:46:47
 * @since 1.0.0.000
 */
public class AccreditResultDto extends ZhimaBaseResultDto {

    private static final long serialVersionUID = 1L;

    private AccreditData retData;

    public AccreditData getRetData() {
        return retData;
    }

    public void setRetData(AccreditData retData) {
        this.retData = retData;
    }

    public AccreditResultDto server_error(AccreditResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_ERROR.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ERROR.getRetMessage());
        AccreditData data = new AccreditData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }

    public AccreditResultDto server_param_limit(AccreditResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetMessage());
        AccreditData data = new AccreditData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }


    public AccreditResultDto server_accrediting(AccreditResultDto response) {
        response.setSuccess(true + "");
        response.setRetCode(ZhimaResultEnum.AUTH_ACCREDITING.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ACCREDITING.getRetMessage());
        return response;
    }
}
